package net.pinnoocle.playdao.entity.shopPc.group;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.pinnoocle.playdao.entity.group.AddGroup;
import net.pinnoocle.playdao.entity.group.UpdateGroup;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author ye
 * @Description
 * @create 2021-10-25 11:01
 */
@Data
public class SaveGroupParams {

    @ApiModelProperty(value = "某个组局id")
    @NotNull(message = "编辑时，组局id不能为空",groups = UpdateGroup.class)
    private String groupId;

    @ApiModelProperty(value = "剧本id")
    @NotNull(message = "剧本id不能为空",groups = AddGroup.class)
    private String scriptId;

    @ApiModelProperty(value = "主持人id",required = true)
    @NotNull(message = "主持人id不能为空")
    private String masterId;

    @ApiModelProperty(value = "组局开始时间",required = true)
    @NotNull(message = "请选择组局开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date startTime;

    @ApiModelProperty(value = "注意事项",required = true)
    @NotNull(message = "注意事项不能为空")
    private String notices;
}
